{extend name="extra@admin/content"}

{block name="content"}

<table class="layui-table" lay-skin="line" lay-size="sm">
    <thead>
    <tr>
        <th class='text-left nowrap'>商品编号</th>
        <th class='text-left nowrap'>商品名称</th>
        <th class='text-left nowrap'>商品属性</th>
        <th class='text-left nowrap'>预估成本</th>
        <th class='text-left nowrap'>对账成本</th>
        <th class='text-left nowrap'>订货数量</th>
        <th class='text-left nowrap'>发货数量</th>
        <th class='text-left nowrap'>收货数量</th>
        <th class='text-left nowrap'>单位</th>
      <!--<th class='text-left nowrap'>添加时间</th>-->
    </tr>
    </thead>
    <tbody>
    {volist name='list' id='vo'}
    <tr>
        <td class='text-left nowrap'>
            {$vo.good_number}
        </td>
        <td class='text-left nowrap'>
            {$vo.name}
        </td>
        <td class='text-left nowrap'>
            {if condition="!empty($vo.title)"}
                {$vo.title}
            {else /}
                无
            {/if}
        </td>
        <td class='text-left nowrap'>
            {if condition="!empty($vo.chengben)"}
                {$vo.chengben}
            {else /}
                无
            {/if}
        </td>
        <td class='text-left nowrap'>
            {if condition="!empty($vo.dz_chengben)"}
                {$vo.dz_chengben}
            {else /}
                暂未对账
            {/if}
        </td>
        <td class='text-left nowrap'>
            {$vo.num}
        </td>
        <td class='text-left nowrap'>
            {if condition="$store.is_jiameng eq 0"}
                {if condition="$order.status eq 0"}
                    审核中
                {elseif condition="$order.status eq 1" /}
                    待收货
                {elseif condition="$order.status eq 2" /}
                    已驳回
                {elseif condition="$order.status eq 3" /}
                    {$vo.num}
                {/if}
            {else /}
                {if condition="$order.status neq 3"}
                    待收货
                {elseif condition="$order.status eq 3" /}
                    {$vo.num}
                {/if}
            {/if}
        </td>
        <td class='text-left nowrap'>
            {if condition="$store.is_jiameng eq 0"}
                {if condition="$order.status eq 0"}
                    审核中
                {elseif condition="$order.status eq 1" /}
                    待收货
                {elseif condition="$order.status eq 2" /}
                    已驳回
                {elseif condition="$order.status eq 3" /}
                    {$vo.rec_num}
                {/if}
            {else /}
                {if condition="$order.status neq 3"}
                    待收货
                {elseif condition="$order.status eq 3" /}
                    {$vo.rec_num}
                {/if}
            {/if}
        </td>
        <td class='text-left nowrap'>
            {$vo.unit}
        </td>
      <!--<td class='text-left nowrap'>
          {$vo.addtime|date='Y-m-d H:i:s',###}
      </td>-->
    </tr>
    {/volist}
    </tbody>
</table>

{/block}


